<?php
  class Document extends ActiveRecord\Model {
     static function AddNewDocument($data)
    {
        /*
        $this->doc_type = $data['doc_type'];
        $this->title = $data['title'];
        $this->notes = $data['notes'];
        $this->owner_id = $data['owner_id'];
        $this->restricted = $data['restricted'];
        $this->rfid = $data['rfid'];
        //$this->date_created = 
        */
          $type = new Document($data);
          return $type->save();
    }
} // End Class Things_model

?>
